 <?php
//连接数据库
$config=array(
    "host"=>'localhost',
    "username"=>'root',
    "password"=>'',
    "dbname"=>'1908'
);
mysql_connect($config['host'],$config['username'],$config['password']);
//选择数据库
mysql_select_db($config['dbname']);
mysql_query("set charset 'utf8'");
mysql_query("set charset set 'utf8'");

?>